import { createApp } from 'vue'
import 'vue/jsx'
// 引入unocss
import '@/plugins/unocss'
// 引入动画
import '@/plugins/animate.css'
// 导入全局的svg图标
import '@/plugins/svgIcon'
// 引入全局样式
import '@/styles/index.less'
// 引入element-plus
import { setupElementPlus } from '@/plugins/elementPlus'
import {setupI18n} from "@/plugins/vueI18n";
import App from './App.vue'

// 引入状态管理
import { setupStore } from '@/store'

// 创建实例
const setupAll = async () => {
    const app = createApp(App)

    await setupI18n(app)

    setupStore(app)

    // setupGlobCom(app)

    setupElementPlus(app)

    // setupRouter(app)

    app.mount('#app')
}

setupAll()